package cn.edu.hust.sse.software7.class3.service;

import java.util.List;

import cn.edu.hust.sse.software7.class3.entities.EBCategory;

public interface EBCategoryService {
	
	boolean isExistCategory(EBCategory category);
	
	void addCategory(EBCategory category);

	void deleteCategory(EBCategory category);
	
	void deleteAllCategory(List<EBCategory> categories);

	List<EBCategory> getCategories();
	
	List<EBCategory> getCategoriesByPid(Long parentCId);

	EBCategory getCategoryById(Long categoryId);
	
	void deleteCategoryById(Long categoryId);
}
